package schach.server.model;

import java.util.ArrayList;

public class Koenig extends Figur {

	public Koenig(Feld position, boolean alive, boolean black) {
		super(position, alive, black);
	}

	@Override
	public ArrayList<Feld> crossedFields(Feld f, boolean schlagen) throws NullPointerException {
		int deltaX = f.getX() - getPosition().getX();
		int deltaY = f.getY() - getPosition().getY();
		// TODO Rochade einbauen
		
		if (Math.abs(deltaX) > 1 || Math.abs(deltaY) > 1){
			throw new NullPointerException();
		}
		return null;
	}

}
